import java.util.Scanner;

public class 淘宝 {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
                System.out.println("请输入本次购物价格：");
                double prince = scanner.nextDouble();
                System.out.println("亲，包邮吗？");
                String answer = scanner.next();
                if(answer.equals("yes")){
                    System.out.println("价格为:"+prince+"元");
                }else if(answer.equals("no")){
                    System.out.println("价格为:"+(prince+20)+"元");
                }
    }
}
